package com.ujiuye.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author 施立璇
 * @version 1.0
 * @description: TODO Thymeleaf测试1
 * @date 2021/5/20 21:16
 */
@Controller
public class FirstThymeleafController {


    /**
     * @description: 将数据message填充到templates/index.html
     * @param: model
     * @return: java.lang.String
     * @author 施立璇
     * @date: 2021/5/20 21:18
     */
    @GetMapping("/first")
    public String indexPage(Model model) {
        String message = "Hello, Thymeleaf!";
        model.addAttribute("message", message);
        System.out.println("111SLX");
        System.out.println("111123");
        System.out.println("123456");
        System.out.println("123456");
        System.out.println("123456");
        System.out.println("123456");
        System.out.println("123456");
        System.out.println("123456");
        return "index";
    }

}
